public class Printer1 implements Device, NetworkDevice, UsbDevice {
    private String brand;

    public Printer1(String brand) {
        this.brand = brand;
    }

    @Override
    public void powerOn() {
        System.out.println(brand + "打印机开机，准备就绪");
    }

    @Override
    public void powerOff() {
        System.out.println(brand + "打印机关机，断开连接");
    }


    @Override
    public void connectNetwork() {
        System.out.println(brand + "打印机通过WiFi连接网络，IP: 192.168.1.100");
    }

    @Override
    public void connectUsb() {
        System.out.println(brand + "打印机通过USB线连接电脑，识别为USB打印设备");
    }

    @Override
    public void repair() {

    }
}
